{{!
# Copyright (C) 2011 - present Instructure, Inc.
#
# This file is part of Canvas.
#
# Canvas is free software: you can redistribute it and/or modify it under
# the terms of the GNU Affero General Public License as published by the Free
# Software Foundation, version 3 of the License.
#
# Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
# A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
# details.
#
# You should have received a copy of the GNU Affero General Public License along
# with this program. If not, see <http://www.gnu.org/licenses/>.
}}

<header class="quiz-header">
  <h1>{{title}}</h1>

  {{#started_at}}
	  {{#t}}Started{{/t}}
	  {{started_at}}
  {{/started_at}}

  {{#description}}
	  <h2>{{#t}}Quiz Instructions{{/t}}</h2>
	  <div id="quiz-instructions" class="user_content">
	    {{description}}
	  </div>
  {{/description}}
</header>

<form method="post" id="submit_quiz_form" action="{{action}}">

<input type="hidden" name="id" value="{{id}}"/>

<div id="questions" class="assessing">
  {{#questions}}
	  {{> views/quizzes/quizzes/display_question}}
  {{/questions}}

  <div class="button-container clearfix">
      {{#previous_btn}}
        <button type="submit" class="Button submit_button previous-question" disabled>
          <i class="icon-mini-arrow-left"></i>
	  {{#t}}Previous{{/t}}
        </button>
      {{/previous_btn}}

      {{#next_btn}}
        <button type="submit" class="Button submit_button  next-question" disabled>
          <i class="icon-mini-arrow-right"></i>
	  {{#t}}Next{{/t}}
        </button>
      {{/next_btn}}
  </div>
</div>

<div style="font-size: 1.2em; display: none;" id="times_up_dialog">
  {{#t}}Time's Up!  Submitting results in{{/t}}
  <div style="text-align: center; font-size: 1.2em; margin: 10px;" class="countdown_seconds"></div>
  <div class="button-container">
    <button type="submit" class="submit_quiz_button btn quiz_submit">
      {{#t}}Ok, fine{{/t}}
    </button>
  </div>
</div>

<div class=form-actions>
  <span id="last_saved_indicator">{{#t}}Not saved{{/t}}</span>
  <button type="submit" class="btn submit_button quiz_submit btn-secondary" id="submit_quiz_button">
    {{#t}}Submit Quiz{{/t}}
  </button>
</div>

</form>
